<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <link rel="shortcut icon" href="/static/user/images/guangong.ico">
    <link rel="stylesheet" href="/static/user/css/jquery.mCustomScrollbar.css">
    <link rel="stylesheet" href="/static/user/css/reset.css">
    <link rel="stylesheet" href="/static/user/css/confirm.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2075499_hkggbre7wq.css">
    <script src="/static/user/js/jquery-3.4.1.js"></script>
    <script src="/static/user/js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script src="/static/user/js/confirm.js"></script>


</head>
<body>
<!--    零食商城头部-->
<div id="header">
    <div id="userinfo_bar" class="hd_bar">
        <div class="bd">
            <div class="left-side left clearfix">
                <div class="left-side-item logo">
                    <img src="./images/xsSchool.png" alt="">
                </div>
                <div id="ECS_MEMBERZONE" class="left-side-item hdlbar">
                    <a href="javascript:;">莞工零食商城首页</a>
                    <a href="javascript:;"><i class="iconfont icon-yonghu"></i>登录</a>
                    <a href="javascript:;">我的全部订单</a>

                </div>
            </div>

            <!--                <div class="right-side">-->
            <!--                    <li class="right-side-item focuson">-->
            <!--                        <span>1</span>我的购物车-->
            <!--                        <i class="iconfont icon-sanjiaoxing_shang"></i>-->
            <!--                    </li>-->
            <!--                    <li class="right-side-item arrow">-->
            <!--                    </li>-->
            <!--                    <li class="right-side-item">-->
            <!--                        <span>2</span>确认订单信息-->
            <!--                        <i class="iconfont icon-sanjiaoxing_shang"></i>-->
            <!--                    </li>-->
            <!--                    <li class="right-side-item arrow">-->
            <!--                    </li>-->
            <!--                    <li class="right-side-item">-->
            <!--                        <span>3</span>成功提交订单-->
            <!--                        <i class="iconfont icon-sanjiaoxing_shang"></i>-->
            <!--                    </li>-->
            <!--                </div>-->
        </div>
    </div>
</div>
<!--        零食商城主题部分-->
<div id="main">
    <div class="main_confirm">
        <div class="main_confirm_head">
            <span>我的订单</span>
        </div>
        <div class="main_confirm_body" >
            <div class="myconfirm_listname">
                <ul>
                    <li>订单号</li>
                    <li>商品名称</li>
                    <li>总价格</li>
                    <li>是否确认收货</li>
                </ul>
            </div>

            <div class="myproduct" data-mcs-theme="dark">
                {volist name="orders" id="or"}
                <div class="myconfirm_product" >
                    <ul>
                        <li><span class="dingdanhao">{$or.order_id}</span></li>
                        <li ><span class="scroller_bar" data-mcs-theme="dark">{$or.order_text}</span></li>
                        <li>{$or.total_price}</li>
                        {if $or.is_sure==0}
                        <li><input type="hidden" value="{$or.id}"><a href="javascript:;" onclick="comfirm(this)">确认收货</a></li>
                        {else}
                        <li><span>已收货</span></li>
                        {/if}
                    </ul>
                </div>
                {/volist}


            </div>


        </div>
    </div>

</div>
<!-- 楚雄零食商城页尾 -->
<div class="footer">
    <div class="footer-top">
        <div class="footer-top-container">
            <a href="#">
                <img src="/static/user/images/f1.png" alt="">
            </a>
            <a href="#">
                <img src="/static/user/images/f2.png" alt="">
            </a>
            <a href="#">
                <img src="/static/user/images/f3.png" alt="">
            </a>
            <a href="#">
                <img src="/static/user/images/f4.png" alt="">
            </a>
        </div>
    </div>
    <div class="footer-bottom">
        <div class="footer-bottom-container">
            <ul class="links">
                <a href=""><li class="link-item">免责条款</li></a>
                <a href=""><li class="link-item">隐私保护</li></a>
                <a href=""><li class="link-item">咨询热点</li></a>
                <a href=""><li class="link-item">联系我们</li></a>
                <a href=""><li class="link-item">公司简介</li></a>
                <a href=""><li class="link-item">批发方案</li></a>
                <a href=""><li class="link-item">配送方式</li></a>
            </ul>
            <p class="copyright">
                2019-2025 © 零食商城 所有 地址：中国·广东·东莞 服务时间：09:00-22:00
            </p>
            <div class="hexin-logo">
                <img src="/static/user/images/hexin.png" alt="">
            </div>
            <div class="cnzz">
                <img src="/static/user/images/pic2.gif" alt="">
            </div>
        </div>
    </div>
</div>
<!-- 回到顶部 -->
<a class="ret" onclick="backtoTop();">
    <img src="/static/user/images/gotop.png" alt="">
</a>
<script>
    function comfirm(_this) {
        $.ajax({
            'url':'comfirm',
            'type':'post',
            'data':{
                'id':$(_this).siblings('input').val()
            },
            success:function (res) {
                if (res==1){
                    console.log($(_this).parent());
                    $(_this).parent().html('已收货');
                }
            }
        })
    }
</script>
</body>


</html>